
import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import ynny.xxxy.blockhandler.MonitorBlockHandler;


@RestController
public class MonitorController {
    @SentinelResource(value = "monitor-hello", blockHandler = "handle",
            blockHandlerClass = MonitorBlockHandler.class)
    @GetMapping("/monitor/hello")
    public String hello() {
        return "v我50";
    }
    @GetMapping("/associate")
    public String associate() {
        return "v我50";
    }
}
